#pragma once
#include "mshtmdid.h"

class CHTMLDocEvents;
typedef IDispEventImpl<2, CHTMLDocEvents, &DIID_HTMLDocumentEvents2, &LIBID_MSHTML, 4, 0> HTMLDocEvents;

class CHTMLDocEvents :
	public HTMLDocEvents
{
public:
	CHTMLDocEvents(void);
	~CHTMLDocEvents(void);

public:
	BEGIN_SINK_MAP(CHTMLDocEvents)
		SINK_ENTRY_EX(2, DIID_HTMLDocumentEvents2, DISPID_HTMLDOCUMENTEVENTS2_ONMOUSEDOWN, OnHTMLDocMousedown)
		SINK_ENTRY_EX(2, DIID_HTMLDocumentEvents2, DISPID_HTMLDOCUMENTEVENTS2_ONCLICK, OnHTMLDocClick)
	END_SINK_MAP()


public:
	VARIANT_BOOL __stdcall OnHTMLDocMousedown(IHTMLEventObj *pEvtObj);   
	VARIANT_BOOL __stdcall OnHTMLDocClick(IHTMLEventObj *pEvtObj);  
};
